	<div id="musicmodule" class="musicmodule" >
{* music no. *}
{assign var="music_no" value=$music_no_start}
  <table border="0" cellspacing="0" cellpadding="0" style="padding-top: 5px;" align=center>
{foreach from=$musics item=music}
<tr class="row_odd">
  <td width="10px" class="number" valign="top" >
  {assign var="music_no" value=$music_no+1}
  {$music_no}</td>
  <td width="300px" class="cont13" valign="top"><div><a href="#" onmouseover="Tip('{$music->info|escape:'quotes':'UTF-8'}',TITLE, '<div align=center style=\'padding-top: 5px; padding-bottom: 5px;\'>{$music->name|escape:'quotes':'UTF-8'}</div>' , BGCOLOR, '#4a4542', FONTCOLOR, '#FFFFFF', BORDERCOLOR, '#f79226', FADEIN, 150, FADEOUT, 100, WIDTH, 250)" onmouseout="UnTip()"><strong>{$music->name}</strong></a>&nbsp;{if $music->top_hit ==1 }<img src='{$smarty.const.THEME_RELATIVE}images/tophit.gif' border=0>{/if}</div>
    <span class="lnk04 small">{if $album_show_require}<div>{$music->album_name}</div>{/if}<a href="{link action=search_singer module=musicsmodule search_string=$music->singer_search album_type=$album->album_type}" {if $smarty.const.LANG == $smarty.const.LANG_ENGLISH} title='Search all music performed by {$music->singer}' alt='Search all music performed by {$music->singer}' {else}  title='Tìm các bài hát được trình bày bởi {$music->singer}' alt='Tìm các bài hát được trình bày bởi {$music->singer}' {/if}>{$music->singer}</a></span></td>
  <td width="100px" align="center" class="cont13">{if $music->high_quality=='' } {* && $music->sheet_music == '' && $music->demo == '' && $music->sound_trackmix == ''*}{else}  
  {if $in_tongpho_mode == 1 }
  <a href="http://thindoc.atalasoft.com/?url={$music->tongpho}"  rel="lyteframe" rev="width: 1024px; height: 500px; scrolling: yes;"><img src="{$smarty.const.THEME_RELATIVE}images/view_pdf.png" width="19" height="17" {if $smarty.const.LANG == $smarty.const.LANG_ENGLISH} title='View pdf sheet of "{$music->name}"' alt='View pdf sheet of "{$music->name}"' {else}  title='Xem trước tổng phổ của "{$music->name}"' alt='Xem trước tổng phổ của "{$music->name}"' {/if}  /></a>
  {/if}
  
  <a {if $isIE}class="iframe"{/if} id="music_link_{$music->id}" href="{link ajax_action=1 isIE=$isIE module=musicsmodule action=play_file id=$music->id}" ><img src="{$smarty.const.THEME_RELATIVE}images/ico_headset.gif" width="19" height="17" {if $smarty.const.LANG == $smarty.const.LANG_ENGLISH} title='Listen "{$music->name}"' alt='Listen "{$music->name}"' {else}  title='Nghe bài hát "{$music->name}"' alt='Nghe bài hát "{$music->name}"' {/if}  /></a>
  
  {if $music->downloadable > 0 && $music->high_quality_id >0 }<a href="{link action=download_file id2=$music->high_quality_id id=$music->id  module=musicsmodule}" {if $smarty.const.LANG == $smarty.const.LANG_ENGLISH} title='Download "{$music->name}"' alt='Download "{$music->name}"' {else}  title='Tải bài "{$music->name}" về máy' alt='Tải bài "{$music->name} về máy' {/if}><img src="{$smarty.const.THEME_RELATIVE}images/download_icon.png" width="19" height="17" /></a>{/if}{/if}
  
  {permissions level=$smarty.const.UILEVEL_PERMISSIONS}
							{if $permissions.administrate == 1}
							<a href="index.php?module=musicsmodule&action=edit_musics&album_id={$music->album_id}&id={$music->id}" title="Edit this entry">
				<img src="{$smarty.const.ICON_RELATIVE}edit.png" title="{$_TR.alt_edit}" alt="{$_TR.alt_edit}" />
			</a>
			<a href="{link action=delete_music id=$music->id module=musicsmodule}" title="Delete this entry">
				<img src="{$smarty.const.ICON_RELATIVE}delete.png" title="{$_TR.alt_delete}" alt="{$_TR.alt_delete}" />
			</a>
							{/if}
							{/permissions}
  
  </td>

  {if $music->fileformat !=""}
  <td width="100px" align="center" class="cont12"><img src="{$smarty.const.THEME_RELATIVE}images/icon_{$music->fileformat}.gif" width="32" height="14" /><br />
    {if $music->bitrate!= "" }<strong>{$music->bitrate} Kbps</strong>{/if}<br />
    {duration duration=$music->length} </td>{/if}
  <td width="5px">&nbsp;</td>
</tr>

{* Music Javascript *}
{* fancybox  *}
                {literal}
            <script language=javascript>
              $(document).ready(function() {
              {/literal}
                $("a#music_link_{$music->id}{literal}").fancybox({ 
            'hideOnContentClick': false,
            'zoomOpacity': true,
            'overlayShow': true,
            'overlayOpacity': 0.9,
            'zoomSpeedIn'			: 600,
        		'zoomSpeedOut'			: 500,
            {/literal}
            {if $isIE}
              'frameHeight': 260,
              'frameWidth': 650,              
        		{else}
        		  'frameHeight': 200,
              'frameWidth': 610,
        		{/if}
        		{literal}
		        'easingIn'				: 'easeOutBack',
		        'easingOut'				: 'easeInBack'
          });{/literal}
          }); 
        </script>
                {* end of fancybox *}
{* End of Music Javascript*}
{/foreach}
  </table></div>

